﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MicroOrm.Pocos.SqlGenerator;

namespace WindowsFormsApplication1
{
    public class sevice
    {
        private ITreeRepository _repo;
        public sevice()
        {
            ISqlGenerator<MyTree> sqlg =new SqlGenerator<MyTree>(); ;
            _repo = new TreeRepository(new System.Data.OleDb.OleDbConnection(DBHelper.GetConnStr()), sqlg);
        }
        public dynamic Load()
        {
            return _repo.GetAll();

        }



    }
}
